package com.javaoopsix.print;

public class PrintMsg {

    Page a4 = new PageA4Impl();
    Page b5 = new PageB4Impl();

    Mohe black = new MoheBlackImpl();
    Mohe red = new MoheRedImpl();

    public void print(){
        String s = black.moheType();
        String type = a4.type();
        System.out.println(s+type);
        String red1 = red.moheType();
        String  b51= b5.type();
        System.out.println(red1+b51);
    }
}
